import request from '@/utils/request'

/**
 * 报告管理列表
 * @param {*} query 
 * @returns 
 */
export function ReportList(query) {
    return request({
        url: '/drill/report/list',
        method: 'get',
        params: query
    })
}

/**
 * 报告管理新增
 * @param {reportTitle,programId,reportContent} data 
 * @returns 
 */
export function ReportAdd(data) {
    return request({
        url: '/drill/report',
        method: 'post',
        data: data
    })
}

/**
 * 报告管理删除
 * @param {reportId} reportId 
 * @returns 
 */
export function ReportDelete(reportId) {
    return request({
        url: '/drill/report/' + reportId,
        method: 'delete',
    })
}

/**
 * 报告管理详情
 * @param {reportId} reportId 
 * @returns 
 */
export function ReportDetails(reportId) {
    return request({
        url: '/drill/report/' + reportId,
        method: 'get',
    })
}

/**
 * 报告管理详情
 * @param {} data
 * @returns 
 */
export function ReportAmend(data) {
    return request({
        url: '/drill/report',
        method: 'put',
        data: data
    })
}

